package xyz.scoder;

import java.util.ArrayList;

public abstract class Pizza {
    String name;
    ArrayList<String> topping = new ArrayList<>();

//    Pizza() {
//        System.out.println("pizza construct");
//    }

    void prepare() {
        System.out.print("准备：鸡蛋,面粉");
        int index = topping.size();
        for (int i=0; i<index ; i++) {
            System.out.print(',' + topping.get(i));
        }
        System.out.println();
    }

    void bake() {
        System.out.println("烘烤：大火烤90分钟");
    }

    void cut() {
        System.out.println("切片：切成扇形");
    }

    void box() {
        System.out.println("装盒：使用经典包装");
    }

    public String getName() {
        return name;
    }
}
